import request from '@/utils/request'

// 查询拼图活动列表
export function listJigsawActivity(query) {
  return request({
    url: '/business/jigsawActivity/list',
    method: 'get',
    params: query
  })
}

// 查询拼图活动详细
export function getJigsawActivity(id) {
  return request({
    url: '/business/jigsawActivity/' + id,
    method: 'get'
  })
}

// 新增拼图活动
export function addJigsawActivity(data) {
  return request({
    url: '/business/jigsawActivity',
    method: 'post',
    data: data
  })
}

// 修改拼图活动
export function updateJigsawActivity(data) {
  return request({
    url: '/business/jigsawActivity',
    method: 'put',
    data: data
  })
}

// 删除拼图活动
export function delJigsawActivity(id) {
  return request({
    url: '/business/jigsawActivity/' + id,
    method: 'delete'
  })
}
